package org.blog.service;


import org.blog.entity.Admin;
import org.blog.entity.param.AdminParam;

import java.util.List;

/**
 * 管理员服务层接口
 */
public interface AdminService {


    /**
     * 多字段搜索
     * @param admin
     * @return
     */
    List<Admin> search(Admin admin);

    /**
     * 新增
     * @param admin
     * @return
     */
    boolean add(Admin admin);

    /**
     * 根据adminId 删除角色
     * @param adminId
     * @return
     */
    boolean delete(Integer adminId);

    /**
     *
     * @param admin
     * @return
     */
    boolean update(Admin admin);

    Admin selectByAdminName(String adminName);

    List<Admin> getAdmins(AdminParam param);

    Admin getAdminById(Integer adminId);
}
